﻿using System.ComponentModel.DataAnnotations;
using YFurion.Application;

namespace UpperComputer.Application
{
    public class BaseRoleUserResultRequestDto: PagedAndSortedResultRequestDto
    {
        [Required]
        [RegularExpression(@"^[a-zA-Z']{1,50}$")]
        public string Account { get; set; }

        public BaseRoleUserResultRequestDto()
        {
            MaxResultCount = int.MaxValue;
            Sorting = "CreationTime Desc";
        }
    }
}
